# 可变参数

# def sum(numbers):
#     total = 0
#     for i in numbers:
#         total += i
#     return total
#
#
# print(sum([1, 2, 3]))

def my_fun(*numbers):
    print(type(numbers))
    total = 0
    for i in numbers:
        total += i
    return total


print(my_fun(1, 2, 3))
